<script id="tpl-user-list" type="text/html">
    {% raw %}
    {{each data}}
    <tr>
        <td>{{ $index }}</td>
        <td><a href='/user/{{ $value.id }}'><p>{{ $value.nickname }}</p></a></td>
        <td><p data-id={{ $value.groups }} >{{ $value.group_name }}</p></td>
        <td><a href={{ $value.github }}>{{ $value.github }}</a></td>
        <td>{{ $value.email }}</td>
        <td>{{ $value.create_time }}</td>
        <td>
            <button type="button" class="btn btn-primary btn-sm permission" data-id='{{ $value.id }}'>
                <span class="glyphicon glyphicon-open"></span>
                Permission
            </button>
            <button type="button" class="btn btn-info btn-sm disabled" data-id='{{ $value.id }}'>
                <span class="glyphicon glyphicon-info-sign"></span>
                Disabled
            </button>
            <button type="button" class="btn btn-danger btn-sm delete" data-id='{{ $value.id }}'>
                <span class="glyphicon glyphicon-trash"></span>
                Delete
            </button>
        </td>
    </tr>
    {{/each}}
    {% endraw %}
</script>
